<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>修改密码</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">

</head>

<script type="text/javascript">
  	function  check(){
  		var pass0 = document.getElementById('PASS0').value;
			if(pass0 == ''){
				alert('请输入原密码');
				document.getElementById('PASS0').focus();
				return false;
			}
			var pass1 = document.getElementById('PASS1').value;
			if(pass1 == ''){
				alert('请输入密码');
				document.getElementById('PASS1').focus();
				return false;
			}
			var pass2 = document.getElementById('PASS2').value;
			if(pass2 == ''){
				alert('请再次输入密码');
				document.getElementById('PASS2').focus();
				return false;
			}
  	
  	}
  	
  	function checkNewPass(){
  		var pass1 = document.getElementById('PASS1').value;
  		var pass2 = document.getElementById('PASS2').value;
  		if(pass1!=pass2){
  			alert('请再次输入密码');
			document.getElementById('PASS2').focus();
			return false;
  		}
  		
  	}
  
  </script>
<body>

<table border="0" width="90%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img src="<%=basePath%>/img/login.gif"
			align="absmiddle"><span class="big3"> 修改密码</span><br>
		</td>
	</tr>
</table>
<form method="post" action="UserManage?action=editpasswword"
	name="form1" onsubmit="check()">
<table class="TableBlock" width="500" align="center">


	<tr class="Big">
		<td class="TableData" width="120"><b>用户名：</b></td>
		<td class="TableData"><b>${UserInfo.userName }</b></td>
	</tr>
	<tr>
		<td class="TableData">原密码：</td>
		<td class="TableData"><input type="password" name="PASS0"
			id="PASS0" class="BigInput" size="20"></td>
	</tr>

	<tr>
		<td class="TableData">新密码：</td>
		<td class="TableData"><input type="password" name="PASS1"
			id="PASS1" class="BigInput" size="20" maxlength="20">
		8-20位，必须同时包含字母和数字</td>
	</tr>

	<tr>
		<td class="TableData">确认新密码：</td>
		<td class="TableData"><input type="password" name="PASS2"
			id="PASS2" class="BigInput" size="20" maxlength="20"
			onchange="checkNewPass()"> 8-20位，必须同时包含字母和数字</td>
	</tr>




	<tr>
		<td class="TableData">密码过期：</td>
		<td class="TableData">密码永不过期</td>
	</tr>

	<tr align="center">
		<td class="TableControl" colspan="2"><input type="submit"
			value="保存修改" class='BigButton'></td>
	</tr>

</table>
</form>


</body>
</html>
